#!/bin/sh

JSON=`curl -X POST -d @authenticateTest.json 'https://127.0.0.1:8443/coMexpert/?action=Authentification&dossier=coMexpert_test' -k 2>/dev/null`
TOKEN=`echo $JSON | gawk -F '"token":' '{ print $2 }' | cut -d'"' -f2`
cat authenticateTest.json
echo $JSON

JSON=`curl -X POST -d @configTest.json 'https://127.0.0.1:8443/coMexpert/?action=GetConfig&dossier=coMexpert_test' -k 2>/dev/null`
cat configTest.json
echo $JSON
